home *** CD-ROM | disk | FTP | other *** search
- on pickNurse playCount
- set NurseObj to getaProp(gObjects, #NurseVid)
- if getOne(getaProp(NurseObj, #Playlist), "H04nssd.mov") <> 0 then
- set State to #cond10
- else
- if getaProp(getaProp(gObjects, #TubeObj), #Aquired) = #true then
- if playCount = 1 then
- set Playlist to getaProp(NurseObj, #Playlist)
- add(Playlist, "H04nssd.mov")
- MakeDynamic(#NurseVid, #Playlist, Playlist)
- set State to #testTubea
- else
- set State to #testTubeb
- end if
- else
- if (getaProp(getaProp(gObjects, #Leaf2Obj), #Aquired) = #true) and (getaProp(getaProp(gObjects, #leaf1Obj), #Aquired) = #true) then
- if getOne(getaProp(NurseObj, #condList), #twoLeafs) = 0 then
- if playCount = 1 then
- set State to #twoLeafsa
- MakeDynamic(#NurseVid, #curCond, #twoLeafs)
- else
- set State to #twoLeafsb
- end if
- else
- set State to #twoLeafsb
- end if
- else
- if (getaProp(getaProp(gObjects, #Leaf2Obj), #Aquired) = #true) or (getaProp(getaProp(gObjects, #leaf1Obj), #Aquired) = #true) then
- set State to #oneLeaf
- else
- if getaProp(getaProp(gStates, #Conditions), #Defibrillate) = #true then
- if getOne(getaProp(NurseObj, #condList), #defibSolved) = 0 then
- if playCount = 1 then
- set State to #defibSolved1a
- MakeDynamic(#NurseVid, #curCond, #defibSolved)
- else
- if playCount = 2 then
- set State to #defibSolved1b
- else
- set State to #defibSolved1c
- end if
- end if
- else
- set State to #defibSolved2
- end if
- else
- if getaProp(getaProp(gObjects, #PaMonitor), #HospPaid) = #true then
- set State to #HospPaid
- else
- if getaProp(gStates, #Credits) > 15000 then
- set State to #sufCreds
- else
- if getaProp(NurseObj, #insufCreds) = #true then
- if getOne(getaProp(NurseObj, #condList), #insufCreds) = 0 then
- if playCount = 1 then
- set State to #insufCreds1a
- MakeDynamic(#NurseVid, #curCond, #insufCreds)
- set Playlist to getaProp(NurseObj, #Playlist)
- add(Playlist, "H04nsup.mov")
- MakeDynamic(#NurseVid, #Playlist, Playlist)
- else
- if playCount = 2 then
- set State to #insufCreds1b
- else
- set State to #insufCreds1c
- end if
- end if
- else
- if getOne(getaProp(NurseObj, #condList), #insufCreds2) = 0 then
- if playCount = 1 then
- set State to #insufCreds2a
- MakeDynamic(#NurseVid, #curCond, #insufCreds2)
- else
- if playCount = 2 then
- set State to #insufCreds2b
- else
- set State to #insufCreds2c
- end if
- end if
- else
- if playCount = 1 then
- set State to #insufCreds3a
- else
- if playCount = 2 then
- set State to #insufCreds3b
- else
- if playCount = 3 then
- set State to #insufCreds3c
- else
- if playCount = 4 then
- set State to #insufCreds3d
- else
- set State to #insufCreds3e
- end if
- end if
- end if
- end if
- end if
- end if
- else
- if getaProp(getaProp(gObjects, #PaMonitor), #PINEntered) = #false then
- if getOne(getaProp(NurseObj, #condList), #noPIN) = 0 then
- if playCount = 1 then
- set State to #noPIN1a
- MakeDynamic(#NurseVid, #curCond, #noPIN)
- else
- if playCount = 2 then
- set State to #noPIN1b
- else
- set State to #noPIN1c
- end if
- end if
- else
- set State to #noPIN2
- end if
- else
- if getOne(getaProp(NurseObj, #condList), #cstSlved1) = 0 then
- if playCount = 1 then
- set State to #cstSlved1a
- MakeDynamic(#NurseVid, #curCond, #cstSlved1)
- else
- if playCount = 2 then
- set State to #cstSlved1b
- else
- set State to #cstSlved1c
- end if
- end if
- else
- if getOne(getaProp(NurseObj, #condList), #cstSlved2) = 0 then
- if playCount = 1 then
- set State to #cstSlved2a
- MakeDynamic(#NurseVid, #curCond, #cstSlved2)
- else
- if playCount = 2 then
- set State to #cstSlved2b
- else
- if playCount = 3 then
- set State to #cstSlved2c
- else
- set State to #cstSlved2d
- end if
- end if
- end if
- else
- set State to #cstSlved3a
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- MakeDynamic(#NurseVid, #State, State)
- MakeDynamic(#NurseVid, #DisplayState, getaProp(NurseObj, #State))
- if playCount > 1 then
- DoCharacterMovie(#NurseVid)
- end if
- end
-